﻿namespace RuoVea.Swms.Server.Models;

/// <summary>
/// 存放位置
/// </summary>
[SugarTable(nameof(WmsLocation), "存放位置")]
public class WmsLocation : EntityBase
{
    /// <summary>
    /// 位置编码
    /// </summary>
    [SugarColumn(ColumnDescription = "位置编码", IsNullable = false, Length = 20)]
    public string Code { get; set; }

    /// <summary>
    /// 位置名称
    /// </summary>
    [SugarColumn(ColumnDescription = "位置名称", IsNullable = false, Length = 50)]
    public string Name { get; set; }

    /// <summary>
    /// 仓库区域
    /// </summary>
    [SugarColumn(ColumnDescription = "仓库区域", Length = 50)]
    public string Area { get; set; }

    /// <summary>
    /// 货架号
    /// </summary>
    [SugarColumn(ColumnDescription = "货架号", Length = 20)]
    public string Shelf { get; set; }

    /// <summary>
    /// 最大容量
    /// </summary>   
   [SugarColumn(ColumnDescription = "最大容量", DefaultValue = "10")]
    public int? MaxCapacity { get; set; }

    /// <summary>
    /// 当前容量
    /// </summary>
    [SugarColumn(ColumnDescription = "当前容量", DefaultValue = "0")]
    public int? CurrentCapacity { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnDescription = "备注", Length = 500)]
    public string Remark { get; set; }
}